/*
 * @Author: jiu yin
 * @Date: 2024-04-09 11:24:01
 * @LastEditTime: 2024-04-26 16:46:07
 * @LastEditors: jiu yin zhen jing
 * @FilePath: \web-smart-tour\src\store\getters.js
 * jiu
 */
const getters = {
	//---------------------子模块
	// 登录框
	is_login_popup: (state) => state.userInfo.is_login_popup,
	// 手机登录按钮是否禁用
	is_login_disabled: (state) => state.userInfo.is_login_disabled,
	// 音频是否播放
	audio_show: (state) => state.userInfo.audio_show,
	//获取地图类型
	map_nav_type: (state) => state.map.map.map_nav_type,
	//是否开启地图 模拟数据
	mock_open: (state) => state.map.map.mock_open,
	//地图 AI开关
	switch_value: (state) => state.map.map.switch_value,
	//回答人动画
	answer_person: (state) => state.map.map.answer_person,
	//地图 实例
	amapPlugin: (state) => state.map.map.amapPlugin,
	//地图 动态信息
	change_map: (state) => state.map.map.change_map,
	//地图marker
	markItem: (state) => state.map.map.markItem,
	// 用户信息
	userInfo: (state) => state.userInfo.user_info,
	//是否已登录
	is_logined: (state) => {
		return state.userInfo?.user_info?.token ? true : false;
	},
	// ai问答加载
	ai_loading: (state) => state.map.map.ai_loading,
	//打开弹窗开关
	clockModal: (state) => state.map.map.clockModal,
	// 文件头
	rec_url: (state) => state.userInfo.rec_url,
	// 公共全局配置
	fileDeploy: (state) => state.userInfo.fileDeploy,
	//分享信息
	shareInfo: (state) => state.share.shareInfo,
	//ai旅拍
	aiPhote: (state) => state.userInfo.aiPhote,
};
export default getters;
